<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改考勤')" />
</head>
<style>
    .jltable{
        margin: auto;
    }
    .jltable th,td{
        min-height: 40px;
        min-width: 50px;
        border: 1px solid #eee;
        padding: 10px;
    }
</style>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-kq-edit" th:object="${lwpqKq}">
        <h4 class="form-header h4" style="margin-top: 30px">考勤管理</h4>
        <table class="jltable">
            <tbody>
            <tr>
                <td><label class="control-label is-required">名字</label></td>
                <td>
                    <input name="name"  th:field="*{name}" class="form-control" type="text" required>
                </td>
                <td><label class="control-label">状态</label></td>
                <td><input  th:field="*{status}" name="status" class="form-control" type="text"></td>


            </tr>
            <tr>
                <td><label class="control-label">正常（次）</label></td>
                <td><input  th:field="*{zc}" name="zc" class="form-control" type="text"></td>
                <td><label class="control-label">早退（次）</label></td>
                <td><input  th:field="*{zt}" name="zt" class="form-control" type="text"></td>
            </tr>

            <tr>
                <td><label class="control-label">迟到（次）</label></td>
                <td><input  th:field="*{cd}" name="cd" class="form-control" type="text"></td>
                <td><label class="control-label">异常（次）</label></td>
                <td><input  th:field="*{yc}" name="yc" class="form-control" type="text"></td>
            </tr>

            <tr>
                <td><label class="control-label">加班（时）</label></td>
                <td><input  th:field="*{jb}" name="jb" class="form-control" type="text">

                <td><label class="control-label">外出（次）</label></td>
                <td><input  th:field="*{wc}" name="wc" class="form-control" type="text"></td>
            </tr>
            <tr>
                <td><label class="control-label">应上班（天）</label></td>
                <td><input  th:field="*{ysb}" name="ysb" class="form-control" type="text"></td>
                <td><label class="control-label">已上班（天）</label></td>
                <td><input  th:field="*{ysb1}" name="ysb1" class="form-control" type="text"></td>
            </tr>
            <tr>
                <td><label class="control-label">说明：</label></td>
                <td colspan="3"><textarea  th:field="*{sm}" name="sm" class="form-control"></textarea></td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "lwpq/kq";
    $("#form-kq-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-kq-edit').serialize());
        }
    }
</script>
</body>
</html>